#!/usr/bin/python3.8.9
# -*- coding: utf-8 -*-

import matplotlib.pyplot as plt
# @Author  : Tina Yu
# @Time    : 2021-8-13 13:36
from matplotlib.font_manager import FontProperties

font_set = FontProperties(fname=r"c:\windows\fonts\simsun.ttc", size=14)

x_values = range(0, 5001)
y_values = [x ** 3 for x in x_values]

plt.style.use('seaborn')
fig, ax = plt.subplots()
ax.scatter(x_values, y_values, c=y_values, cmap=plt.cm.Greens, s=5)

ax.set_title(u'立方值的图表', fontproperties=font_set, fontsize=20)
ax.set_xlabel(u'x轴值', fontproperties=font_set)
ax.set_ylabel(u'y轴值', fontproperties=font_set)

ax.tick_params(axis='both', which='major', labelsize=8)
ax.axis([0, 5000, 0, 125_000_000_000])
plt.show()
